package com.cn.designpatterns.ex.concrete.template;

import java.util.Arrays;
import java.util.Collections;

/**
 * @author zhangyi
 * @date 2018/12/24 16:03
 */
public class Desc extends Template {
    public Desc(Object[] array) {
        super(array);
    }

    @Override
    public void sort(Object[] array) {
        Collections.sort(Arrays.asList(array),(x, y) -> {
            return (Integer)y - (Integer)x;
        });
    }
}
